package com.example.springbootdemo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户Excel数据模型
 */
@Data
@Schema(description = "用户Excel数据")
public class UserExcel {
    
    @ExcelProperty(value = "用户名", index = 0)
    @Schema(description = "用户名")
    private String username;
    
    @ExcelProperty(value = "密码", index = 1)
    @Schema(description = "密码")
    private String password;
    
    @ExcelProperty(value = "真实姓名", index = 2)
    @Schema(description = "真实姓名")
    private String realName;
    
    @ExcelProperty(value = "邮箱", index = 3)
    @Schema(description = "邮箱")
    private String email;
    
    @ExcelProperty(value = "手机号", index = 4)
    @Schema(description = "手机号")
    private String phone;
    
    @ExcelProperty(value = "状态", index = 5)
    @Schema(description = "状态")
    private String status;
    
    @ExcelProperty(value = "创建时间", index = 6)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
} 